package com.douqu.game;

import com.douqu.game.core.factory.DataFactory;
import com.douqu.game.core.factory.LoadFactory;

import java.io.File;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-01-28 12:09
 */
public class LoadTest {

    public static void main(String[] args)
    {
        test();
    }

    public static void test()
    {
        DataFactory.getInstance().clearData();

        LoadFactory.loadGameObject("data");

        DataFactory.getInstance().checkConfig();

//        LoadFactory.loadInitData("data/");
//
//        LoadFactory.loadWord("data/");
    }


    public static void load(String path)
    {
        DataFactory.getInstance().clearData();

        LoadFactory.loadGameObject(path);

//        LoadFactory.loadInitData(path + "/");

        DataFactory.getInstance().checkConfig();
//
//        LoadFactory.loadWord(path + "/");
    }

}
